Hotel Reservation Application
Object-Oriented Programming
Criteria | Meet Specification |
---|---|
Create and use Java Interface classes to support polymorphism. |
The hotel reservation application contains the IRoom interface , which is implemented by the |
Subclass a parent class to support polymorphism. |
The |
Define class variables as private and provide accessor and mutator methods to get and manipulate class variables. |
There is at least one example of the model classes ( |
Override an object |
There is at least one example of the model classes ( |
Provide at least one example of overriding the hashcode and equals method in a data model class. |
There is at least one example of the model classes ( |
Use variable access modifiers (such as |
The application contains at least one example of using each of the following access modifiers: ‘public’, ‘private’ and ‘final’. |
Processing and Storing Data
Criteria | Meet Specification |
---|---|
Store and process data for an application in a Collection. |
Collections are used to store data for:
The collection type chosen for rooms ensures that two rooms cannot be booked at the same time. |
Use a |
The
|
Use the |
All of the service classes use |
Use method access modifiers to modify method access. |
The
|
Core Java Concepts
Criteria | Meet Specification |
---|---|
Use Regular Expressions to validate String input. |
The |
Create Enumeration classes. |
The application contains the enumeration class |
Use |
The Reservation class uses Date objects for check-in date and check-out date. |
Use |
The application contains at least one example of using |
Use Java types to store and process data |
The application uses different Java types (String, Double and Dates) to store data on objects. |
Use a |
The application UI uses a |
Tips to make your project standout:
- Customize the find-a-room method to search for paid rooms or free rooms.
- Provide a menu option from the Admin menu to populate the system with test data (Customers, Rooms and Reservations).
- Allow the users to input how many days out the room recommendation should search if there are no available rooms.